* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  font-family: "Microsoft YaHei", sans-serif;
}

body {
  text-align: center;
  background-color: #eeeeee;
}

#container {
  margin-top: 3.2rem;
  display: inline-block;
  position: relative;
}

.mask {
  position: absolute;
  height: 100%;
  display: block;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.6);
  animation: pop-in 0.2s ease;
}

.game-over,
.congratulate {
  display: none;
}

.panel {
  padding: 0.8rem 0;
  background-color: #607d8b;
  color: white;
}

.panel:after{
  content: '';
  clear: both;
  display: block;
}

.panel>span {
  width: 33%;
  float: left;
  border-right: 1px solid #90a4ae;
  padding: 1.6rem;
  box-sizing: border-box;
}

.panel>span:last-child {
  border: none;
}

.panel>span>span {
  font-size: 3.2rem;
}

.banner{
  font-size: 6.4rem;
  color: #ff9800;
  margin-top: 6.4rem;
  position: absolute;
  height: 1em;
  line-height: 1em;
  width: 1em;
  left: 50%;
  top:50%;
  margin-top: -1.5em;
  margin-left: -0.5em;
}

.btn {
  position: absolute;
  height: 3.2em;
  display: block;
  top: 50%;
  left: 50%;
  width: 12rem;
  line-height: 3.2em;
  background-color: #607d8b;
  color: white;
  text-align: center;
  font-size: 1.4rem;
  cursor: pointer;
  border-radius: 1.6em;
  margin-left: -6rem;
}

.row {
  margin: 0;
  height: 4rem;
}

.cell {
  border: 1px solid #e0e0e0;
  height: 4rem;
  width: 4rem;
  box-sizing: border-box;
  text-align: center;
  line-height: 4rem;
  float: left;
  cursor: pointer;
  background-color: #b0bec5;
  transform: rotateX(0deg);
  transition: all 0.4s ease;
  font-size: 1.4rem;
  color: #424242;
}

.cell:hover {
  background-color: #cfd8dc;
}

.cell.opened {
  cursor: default;
  transform: rotateX(360deg);
  background-color: white;
}

.cell[state='flag']::after {
  content: '\f024';
  font-family: FontAwesome;
  color: #e65100;
}

.cell[state='query']::after {
  content: "\f128";
  font-family: FontAwesome;
  color: #5d4037;
  font-size: 1.8rem;
}

.cell[state='true'] {}

.cell[state='true']::after {
  content: "\f1e2";
  font-family: FontAwesome;
  color: #ff5722;
  font-size: 1.8rem;
}

.opened[state='0']::after {
  content: '0';
  color: #9e9e9e;
}

.opened[state='1']::after {
  content: '1';
  color: #689f38;
}

.opened[state='2']::after {
  content: '2';
  color: #00bcd4;
}

.opened[state='3']::after {
  content: '3';
  color: #f57f17;
}

.opened[state='4']::after {
  content: '4';
  color: #bf360c;
}

.opened[state='5']::after {
  content: '5';
  color: #795548;
}

.opened[state='6']::after {
  content: '6';
  color: #c41411;
}

.opened[state='7']::after {
  content: '7';
  color: #c41411;
}

.opened[state='8']::after {
  content: '8';
  color: #c41411;
}

@keyframes pop-in{
  0%{
    transform:scale(0);
  }
  100%{
    transform:scale(1);
  }
}